#!/bin/bash  
user="root"  
pass="root"  
date=`date +%Y%m%d`
mysqldump -u ${user} -p${pass} qiaohu > /var/backup/database${date}.sql